Subject: Use system googletest
Forwarded: not-needed
+Last-Update: 2021-09-18
---
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
+ CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
-index efb51ae..e26b934 100644
+index 094a9c7..a9ac2f5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -195,7 +195,7 @@ add_subdirectory(test)
- ######## Testing
-
+@@ -204,6 +204,8 @@ add_subdirectory(test)
if (ENABLE_GTEST)
-- add_subdirectory(deps/gtest-1.11.0)
-+ add_subdirectory(/usr/src/googletest/googletest ${CMAKE_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL)
+ if(NOT USE_SYSTEM_GTEST)
+ add_subdirectory(deps/gtest-1.11.0)
++ else()
++ add_subdirectory(/usr/src/googletest/googletest ${CMAKE_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL)
+ endif()
enable_testing()
endif()
-